package com.bharat.matriService.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.bharat.matriService.model.Enumerations;

public class EnumerationsRowMapper implements RowMapper<Enumerations>{

	@Override
	public Enumerations mapRow(ResultSet rs, int rowNum) throws SQLException {
		Enumerations e = new Enumerations();
		e.setEnumId(rs.getLong("ENUM_ID"));
		e.setEnumValue(rs.getString("ENUM_VALUE"));
		e.setEnumGroup(rs.getString("ENUM_GROUP"));
		return e;
	}

}
